package com.wt.admin.domain.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.wt.admin.domain.entity.PublicEntity;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "sys_role",autoResultMap = true)
public class SysRoleEntity extends PublicEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "role_name")
    private String roleName;

    @TableField(value = "menu_ids",typeHandler = JacksonTypeHandler.class)
    private List<Integer> menuIds;

    @TableField(value = "enable_tag")
    private Boolean enableTag;

}
